<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div id="app">
    {{msg}}
</div>
<script src="https://unpkg.com/vue@2.6.14/dist/vue.js"></script>
<script>
    //创建Vue的实例
   var vm = new Vue({
    data:{msg:'hello'}
   });
   //使用$mount方法可以把实例挂载到DOM上
   vm.$mount('#app');
</script>
</body>
</html>